from flask import render_template
from dcs_web import app
# from models import BaseConfig
import models as orm

@app.route("/")
def index():
    all = orm.BaseConfig.query.all()
    configs = ["key:%s,value:%s" % (conf.key_name, conf.key_value)for conf in all]
    return ", ".join(configs)

@app.route("/login")
def login():
    return render_template("login.html")


if __name__ == "__main__":
    app.run(host="127.0.0.1", port=8000, debug=True)